# 打印出n行的字符三角形
n = 8
i = 1
for x in range(n):
    print(" "*(n-(x+1)) + "*" * i)
    i += 2
